#pragma once
#include "ServerCommunication.h"
#include <memory>

class CPlayer;

class CMain
{
private:
	CServerCommunication m_ServerCommunity;
	HDC m_hdc;
	std::shared_ptr<CPlayer> m_spPlayer;

	// Double Buffering
	HDC hdcMem;
	HBITMAP hOldMap, hBackMap;

	RECT m_BackBufferClearRect;

	void InitBackBuffer();
public:
	void Progress();
	void Render();
	bool Init(LPTSTR lpCmdLine);
	void OnEvent(int iEvent);

public:
	CMain(void);
	~CMain(void);
};

